/*
 * @Author: yangzonglong
 * @Date: 2021-03-01 13:18:46
 * @version: v1.0.0
 * @Descripttion:
 * @LastEditors: yangzonglong
 * @LastEditTime: 2021-08-18 15:26:28
 * @Auditor:
 */
import React from 'react';

const height = { height: 'auto', width: '100%' };

const App = (props,) => {
  const { formItemProps } = props;

  const style = {
    ...height,
    ...formItemProps?.style,
    padding: 0, margin: 0
  };

  if (formItemProps.printPageFoldout) {
    style['page-break-before'] = 'always';
  }

  return (
    <div
      className='adjustSpacing'
      {...formItemProps}
      style={style}>
      <div
        style={{
          height: formItemProps?.style?.height,
        }}
      ></div>
    </div>
  );
};

export default App;
